package com.zimmur.restful.model;


import java.util.ArrayList;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.zimmur.model.account.GoodsUser;
import com.zimmur.model.base.BaseModel;
import com.zimmur.model.goods.Goods;
import com.zimmur.model.zone.TopicComment;
/**
 * 话题
 * @author Administrator
 *
 */
public class Topic extends BaseModel {
	private static final long serialVersionUID = 7927671710825990187L;
	private long topicId;
    private String title;
    private String content;
    private double reward=0.0;
    private Integer createDate;
    private String fmtCreateDate="";
    private long createUser;
    private Integer endDate=0;
    private String  fmtEndDate="";
    private String coverImage="";//封面
    private Integer browserNum;//浏览数
    private Integer commentNum;//评论数
    private Integer shareNum;//转发数
    private Integer favNum;//收藏数
    private Integer pressNum;//点赞数
    private Integer rewardStatus;
    private Integer isCollect=0;//是否收藏
    private Integer isPraise=0;//是否点赞
    private Integer totalRecord=0;//总记录数
    @JsonIgnore
    private Integer isApply = 0;
//    private Integer isConcern=0;//是否关注
    private List<TopicPicture> topicPictures = new ArrayList<>();//话题图片
    private List<Goods> goodsList = new ArrayList<>();//推荐商品
    private List<TopicComment> topicComments = new ArrayList<>();//话题评论
    private GoodsUser user=new GoodsUser();//用户信息
    
    private String author="";
    
    private Short topicType=1;
    
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public long getTopicId() {
		return topicId;
	}
	public void setTopicId(long topicId) {
		this.topicId = topicId;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}

	public double getReward() {
		return reward;
	}
	public void setReward(double reward) {
		this.reward = reward;
	}
	public Integer getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Integer createDate) {
		this.createDate = createDate;
	}
	public long getCreateUser() {
		return createUser;
	}
	public void setCreateUser(long createUser) {
		this.createUser = createUser;
	}
	public Integer getEndDate() {
		return endDate;
	}
	public void setEndDate(Integer endDate) {
		this.endDate = endDate;
	}
	public String getFmtEndDate() {
		return fmtEndDate;
	}
	public void setFmtEndDate(String fmtEndDate) {
		this.fmtEndDate = fmtEndDate;
	}
	public String getFmtCreateDate() {
		return fmtCreateDate;
	}
	public void setFmtCreateDate(String fmtCreateDate) {
		this.fmtCreateDate = fmtCreateDate;
	}

	public String getCoverImage() {
		return coverImage;
	}
	public void setCoverImage(String coverImage) {
		this.coverImage = coverImage;
	}
	public Integer getBrowserNum() {
		return browserNum;
	}
	public void setBrowserNum(Integer browserNum) {
		this.browserNum = browserNum;
	}
	public Integer getCommentNum() {
		return commentNum;
	}
	public void setCommentNum(Integer commentNum) {
		this.commentNum = commentNum;
	}
	public Integer getShareNum() {
		return shareNum;
	}
	public void setShareNum(Integer shareNum) {
		this.shareNum = shareNum;
	}
	public Integer getFavNum() {
		return favNum;
	}
	public void setFavNum(Integer favNum) {
		this.favNum = favNum;
	}
	public Integer getPressNum() {
		return pressNum;
	}
	public void setPressNum(Integer pressNum) {
		this.pressNum = pressNum;
	}
	
	public Integer getRewardStatus() {
		return rewardStatus;
	}
	public void setRewardStatus(Integer rewardStatus) {
		this.rewardStatus = rewardStatus;
	}
	public Integer getIsCollect() {
		return isCollect;
	}
	public void setIsCollect(Integer isCollect) {
		this.isCollect = isCollect;
	}
	public Integer getIsPraise() {
		return isPraise;
	}
	public void setIsPraise(Integer isPraise) {
		this.isPraise = isPraise;
	}
	public GoodsUser getUser() {
		return user;
	}
	public void setUser(GoodsUser user) {
		this.user = user;
	}
	public List<TopicPicture> getTopicPictures() {
		return topicPictures;
	}
	public void setTopicPictures(List<TopicPicture> topicPictures2) {
		this.topicPictures = topicPictures2;
	}
	public List<TopicComment> getTopicComments() {
		return topicComments;
	}
	public void setTopicComments(List<TopicComment> topicComments) {
		this.topicComments = topicComments;
	}
	public List<Goods> getGoodsList() {
		return goodsList;
	}
	public void setGoodsList(List<Goods> goodsList) {
		this.goodsList = goodsList;
	}
	
	public Integer getTotalRecord() {
		return totalRecord;
	}
	public void setTotalRecord(Integer totalRecord) {
		this.totalRecord = totalRecord;
	}
	
	public Integer getIsApply() {
		return isApply;
	}
	public void setIsApply(Integer isApply) {
		this.isApply = isApply;
	}
	public Short getTopicType() {
		return topicType;
	}
	public void setTopicType(Short topicType) {
		this.topicType = topicType;
	}
	
	@Override
	public String toString() {
		return "Topic [topicId=" + topicId + ", title=" + title + ", content=" + content + ", reward=" + reward
				+ ", createDate=" + createDate + ",createUser=" + createUser
				+ ", endDate=" + endDate + ", coverImage=" + coverImage + ", browserNum=" + browserNum + ", commentNum="
				+ commentNum + ", shareNum=" + shareNum + ", favNum=" + favNum + ", pressNum=" + pressNum + ",topicType="+topicType+"]";
	}
}